<?php
$uid = '613496303';
$sb = substr($uid,-1)%8;
var_dump($sb);
